package me.luger.project.picc.controller.api;

import me.luger.core.commom.util.LogUtil;
import me.luger.core.commom.util.StringUtil;
import me.luger.core.mvc.controller.BaseController;
import me.luger.core.mvc.entity.Result;
import me.luger.project.picc.entity.ActivityEnum;
import me.luger.project.picc.entity.Insurance;
import me.luger.project.picc.entity.PrizeList;
import me.luger.project.picc.entity.picc.PolicyResult;
import me.luger.project.picc.service.InsuranceService;
import me.luger.project.picc.service.PrizeListService;
import me.luger.project.picc.service.picc.PiccService;
import me.luger.project.picc.service.picc.TongjiService;
import org.apache.commons.collections.map.HashedMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * 投保有奖 controller
 */
@Controller
@RequestMapping("/api/picc/tongji")
public class TongjiApiController extends BaseController {



    @Autowired
    private TongjiService tongjiService;

    @RequestMapping(value = "/addCount",name = "接口描述")
    @ResponseBody
    public Object addCount(String openId,int typeId){
        try{
            tongjiService.addUserCount(openId,null,typeId);
        }catch (Exception e){
            LogUtil.errorLog(e,"");
            return Result.error();
        }
        return Result.success();
    }

    @RequestMapping(value = "",name = "接口描述")
    @ResponseBody
    public Object demo(){
        try{

        }catch (Exception e){
            LogUtil.errorLog(e,"");
            return Result.error();
        }
        return Result.success();
    }
}
